package com.sgb.kjwl.model.entity.self;

import android.os.Build;
import androidx.annotation.RequiresApi;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * Created by WYJ on 2020/8/13.
 */
public class SelfTeamMemberEntity implements Serializable {


    /**
     * certificatePath : ["https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/202004121155623423291","https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/2020041211556234723715","https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/2020041211556236523603"]
     * no : 202004294297266
     * certificates : [{"no":"202004294297266","name":"","id":186,"picture":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/202004121155623423291"},{"no":"202004294297266","name":"","id":185,"picture":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/2020041211556234723715"},{"no":"202004294297266","name":"","id":184,"picture":"https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/2020041211556236523603"}]
     * name : 啧啧啧啧
     * workingYear : 24
     * id : 125
     * position : 的方式水水水水水水水水水水水水水水水水从
     * introduction : 反倒是水水水水水
     水水水水水水水水水水
     水撒烦为谔谔谔谔谔谔谔
     谔谔谔谔谔谔谔谔谔谔谔我
     去谔谔谔谔谔谔谔谔谔谔谔谔
     对方说的分手费
     对方是否
     对方的身份反反复复反反复复反反复复
     说的反反复复反反复复
     * age : 12
     * sex : 性别 0 男 1 女
     * birthDay : 出生日
     * nation : 民族
     * performanceContent : 业绩
     * performances : 业绩证书
     */
    //("id")
    private Long id;
    //("no")
    private String no;

    //("员工姓名")
    private String name;
    //("员工性别")
    private String sex; // 0男 1 女
    //("员工年龄")
    private int age;
    //("员工婚姻")
    private String marriage;//0 未婚 1 已婚
    //("民族")
    private String nation;
    private String nationName;
    private String birthDay;//出生日：用于保存出生日
    private String birthDayStr;//出生日：用于回显数据//这里不知道为啥要这样做，后台是这样要求的
    private String performanceContent;//业绩
    private List<CertificatesBean> performances;//业绩证明上传字段
    private List<CertificatesBean> performancePicDTOS;//业绩证明回显，这里后台为了和pc端区分多加了一个字段

    //("工龄")
    private int workingYear;

    //("职位")
    private String workType; // workType

    //("员工简介")
    private String introduction;

    //("员工头像")
    private String avatarAddress;
    //是否选中状态
    private boolean isLooks = false;

    public boolean isLooks() {
        return isLooks;
    }

    public void setLooks(boolean looks) {
        this.isLooks = looks;
    }

    private List<String> certificateName;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    private String position;
    private String address;
    private String homeCityNo;
    private String homeProNo;

    private String identity;
    //("联系电话")
    private String contactPhone;
    private List<String> certificatePath;
    //("专业证书")

    public String getAvatarAddress() {
        return avatarAddress;
    }

    public void setAvatarAddress(String avatarAddress) {
        this.avatarAddress = avatarAddress;
    }

    public void setWorkingYear(Integer workingYear) {
        this.workingYear = workingYear;
    }

    public List<String> getCertificateName() {
        return certificateName;
    }

    public void setCertificateName(List<String> certificateName) {
        this.certificateName = certificateName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getHomeCityNo() {
        return homeCityNo;
    }

    public void setHomeCityNo(String homeCityNo) {
        this.homeCityNo = homeCityNo;
    }

    public String getHomeProNo() {
        return homeProNo;
    }

    public void setHomeProNo(String homeProNo) {
        this.homeProNo = homeProNo;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    private List<CertificatesBean> certificates;

    public String getWorkType() {
        return workType;
    }

    public void setWorkType(String workType) {
        this.workType = workType;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWorkingYear() {
        return workingYear;
    }

    public void setWorkingYear(int workingYear) {
        this.workingYear = workingYear;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public List<String> getCertificatePath() {
        return certificatePath;
    }

    public void setCertificatePath(List<String> certificatePath) {
        this.certificatePath = certificatePath;
    }

    public List<CertificatesBean> getCertificates() {
        return certificates;
    }

    public void setCertificates(List<CertificatesBean> certificates) {
        this.certificates = certificates;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMarriage() {
        return marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    public List<CertificatesBean> getPerformances() {
        return performances;
    }

    public void setPerformances(List<CertificatesBean> performances) {
        this.performances = performances;
    }

    public String getPerformanceContent() {
        return performanceContent;
    }

    public void setPerformanceContent(String performanceContent) {
        this.performanceContent = performanceContent;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(String birthDay) {
        this.birthDay = birthDay;
    }

    public String getNationName() {
        return nationName;
    }

    public void setNationName(String nationName) {
        this.nationName = nationName;
    }

    public String getBirthDayStr() {
        return birthDayStr;
    }

    public void setBirthDayStr(String birthDayStr) {
        this.birthDayStr = birthDayStr;
    }

    public List<CertificatesBean> getPerformancePicDTOS() {
        return performancePicDTOS;
    }

    public void setPerformancePicDTOS(List<CertificatesBean> performancePicDTOS) {
        this.performancePicDTOS = performancePicDTOS;
    }

    public static class CertificatesBean implements Serializable{
        /**
         * no : 202004294297266
         * name :
         * id : 186
         * picture : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/machine/610000/202004121155623423291
         */

        private String no;
        private String name;
        private int id;
        private String picture;

        public String getNo() {
            return no;
        }

        public void setNo(String no) {
            this.no = no;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPicture() {
            return picture;
        }

        public void setPicture(String picture) {
            this.picture = picture;
        }
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        SelfTeamMemberEntity that = (SelfTeamMemberEntity) o;
        return no.equals(that.no);
    }

    @RequiresApi(api = Build.VERSION_CODES.KITKAT)
    @Override
    public int hashCode() {
        return Objects.hash(no);
    }

    @Override
    public String toString() {
        return "SelfTeamMemberEntity{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", workingYear=" + workingYear +
                ", workType='" + workType + '\'' +
                ", introduction='" + introduction + '\'' +
                ", avatarAddress='" + avatarAddress + '\'' +
                ", certificateName=" + certificateName +
                ", position='" + position + '\'' +
                ", address='" + address + '\'' +
                ", homeCityNo='" + homeCityNo + '\'' +
                ", homeProNo='" + homeProNo + '\'' +
                ", identity='" + identity + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", certificatePath=" + certificatePath +
                ", certificates=" + certificates +
                '}';
    }
}
